package app.modules.security.constant;

import jasmine.framework.i18n.DeclareI18N;

/**
 * @author mh.z
 */
public interface SecurityMsgConstants {

    @DeclareI18N("接口")
    String RESOURCE_TYPE_API = "$server.security.resource.resourceType.api";

    @DeclareI18N("页面")
    String RESOURCE_TYPE_PAGE = "$server.security.resource.resourceType.page";

    @DeclareI18N("匿名")
    String ACCESS_POLICY_ANONYMOUS = "$server.security.resource.accessPolicy.anonymous";

    @DeclareI18N("已登录")
    String ACCESS_POLICY_AUTHENTICATED = "$server.security.resource.accessPolicy.authenticated";

    @DeclareI18N("已授权")
    String ACCESS_POLICY_GRANTED = "$server.security.resource.accessPolicy.granted";

    @DeclareI18N("不能删除已经分配给用户的角色！")
    String CANNOT_DELETE_BECAUSE_ASSIGNED_TO_USER = "$server.security.role.msg.cannotDeleteBecauseAssignedToUser";

    @DeclareI18N("角色代码\"{0}\"已经存在！")
    String THE_ROLE_CODE_ALREADY_EXISTS = "$server.security.role.msg.theRoleCodeAlreadyExists";

    @DeclareI18N("功能代码\"{0}\"已经存在！")
    String THE_FUNCTION_CODE_ALREADY_EXISTS = "$server.security.function.msg.theFunctionCodeAlreadyExists";

    @DeclareI18N("权限代码\"{0}\"已经存在！")
    String THE_PERMISSION_CODE_ALREADY_EXISTS = "$server.security.permission.msg.thePermissionCodeAlreadyExists";

}
